classdef grayScreen < stim
    properties
        lum = 0.5;
    end
    methods
        function s = grayScreen(lum,type)
            if ~exist('type','var')||isempty(type)
                type = 'grayScreen';
            end
            if ~exist('duration','var')||isempty(duration)
                duration = Inf;
            end
            s = s@stim(type,duration);
            
            if ~exist('lum','var')||isempty(lum)
                lum = 0.5;
            end
            if isnumeric(lum)
                s.lum = lum;
            else
                error('grayScreen:wrongType','lum should be a numeric type');
            end
        end
        
        function out = getSpatFreq(s)
            out = 0;
        end
        
        function out = getTempFreq(s)
            out = 0;
        end
        
        function out = getContrast(s)
            out = 0;
        end
        
        function out = getOrientation(s)
            out = 0;
        end
    end
end